const state = {
    resultTextArray: []
};
const mutations = {
    /**
     * 存缓存
     * @param state
     * @param object 基本格式 { key:cacheKey, data:cacheData }
     */
    setCache: (state, object) => {
        state[object['key']] = object['value']
    },
    /**
     * 清缓存
     * @param state
     * @param key cacheKey
     */
    clearCache: (state, key) => {
        state[key] = null
    },
}

export default {
    namespaced: true,
    state,
    mutations
};
